package ae.pcfc.cldos.online.web.controller.reports.home;

import javax.swing.table.AbstractTableModel;

public class CustomTableTransactionModel extends AbstractTableModel {
	private String[] columnNames = { "field1", "field2", "field3", "field4",
			"field5", "field6", "field7" , "field8", "field9", "field10", "field11", "field12","field13","field14"};

	private Object[][] data;

	public CustomTableTransactionModel() {
	}

	public Object[][] getData() {
		return data;
	}

	public void setData(Object[][] data) {
		this.data = data;
	}

	public int getColumnCount() {
		return this.columnNames.length;
	}

	public String getColumnName(int columnIndex) {
		return this.columnNames[columnIndex];
	}

	public int getRowCount() {
		return this.data.length;
	}

	public Object getValueAt(int rowIndex, int columnIndex) {
		return this.data[rowIndex][columnIndex];
	}
}
